package com.physics.mps.module.setting;

import com.physics.mps.entity.vo.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author mcsoft
 * @date 2023/09/15 15:24
 **/
@Api(tags = "AppModule接口")
@RestController
@RequestMapping(value = "/appModule")
@RequiredArgsConstructor
public class AppModuleController {

    private final AppMoluleService appMoluleService;


    @PostMapping(value = "/getAppModuleListByAppId/{id}")
    @ApiOperation(value = "根据APPID查询MODULE数据")
    @ApiImplicitParams({
            @ApiImplicitParam(paramType = "header", name = "authorization", value = "authorization", dataType = "String", required = true)
    })
    public ResponseResult getAppModuleListByAppId(@PathVariable("id") String id) {
        return ResponseResult.success(appMoluleService.getAppModuleListByAppId(id));
    }
}
